import request from '@/utils/request'

// 查询业务理论考核列表
export function listTheoryExams(query) {
  return request({
    url: '/firemen/TheoryExams/list',
    method: 'get',
    params: query
  })
}

// 查询业务理论考核详细
export function getTheoryExams(id) {
  return request({
    url: '/firemen/TheoryExams/' + id,
    method: 'get'
  })
}

// 新增业务理论考核
export function addTheoryExams(data) {
  return request({
    url: '/firemen/TheoryExams',
    method: 'post',
    data: data
  })
}

// 修改业务理论考核
export function updateTheoryExams(data) {
  return request({
    url: '/firemen/TheoryExams',
    method: 'put',
    data: data
  })
}

// 删除业务理论考核
export function delTheoryExams(id) {
  return request({
    url: '/firemen/TheoryExams/' + id,
    method: 'delete'
  })
}
